package com.ruoyi.system.domain.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author wux
 * @date 2023/5/22 10:14
 */
@Data
public class SysRoleDTO {
    @ApiModelProperty(value = "项目id")
    @NotNull
    private Long projectId;
    @ApiModelProperty(value = "角色名称")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "备注")
    private String remark;

    @Data
    public static class SysRoleMenuDTO {
        @ApiModelProperty(value = "角色id")
        private Long roleId;
        @ApiModelProperty(value = "菜单id集合")
        private List<Long> menuId;
    }

}
